home *** CD-ROM | disk | FTP | other *** search
- /foureq {4 index eq 8 1 roll
- 4 index eq 8 1 roll
- 4 index eq 8 1 roll
- 4 index eq 8 1 roll
- pop pop pop pop and and and} def
- hascolor {/band 0 def} {/band 5 def} ifelse
- /setcmykcolor where {pop
- 1 0 0 0 setcmykcolor _currentgray 1 exch sub
- 0 1 0 0 setcmykcolor _currentgray 1 exch sub
- 0 0 1 0 setcmykcolor _currentgray 1 exch sub
- 0 0 0 1 setcmykcolor _currentgray 1 exch sub
- 4 {4 copy} repeat
- 1 0 0 0 foureq {/band 1 store} if
- 0 1 0 0 foureq {/band 2 store} if
- 0 0 1 0 foureq {/band 3 store} if
- 0 0 0 1 foureq {/band 4 store} if
- 0 0 0 0 foureq {/band 6 store} if} if
- blank {/band 6 store} if
-